using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._SpatialAnalystTools._Zonal
{
    /// <summary>
    /// <para>Zonal Fill</para>
    /// <para>Fills zones using the minimum cell value from a weight raster along the zone boundary.</para>
    /// <para>使用权重栅格沿区域边界的最小像元值填充区域。</para>
    /// </summary>    
    [DisplayName("Zonal Fill")]
    public class ZonalFill : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ZonalFill()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_zone_raster">
        /// <para>Input zone raster</para>
        /// <para>The input raster that defines the zones to be filled.</para>
        /// <para>用于定义要填充的区域的输入栅格。</para>
        /// </param>
        /// <param name="_in_weight_raster">
        /// <para>Input weight raster</para>
        /// <para>Weight, or value, to be assigned to each zone.</para>
        /// <para>要分配给每个区域的权重或值。</para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para>The output raster for which the zones have been filled.</para>
        /// <para>已填充区域的输出栅格。</para>
        /// </param>
        public ZonalFill(object _in_zone_raster, object _in_weight_raster, object _out_raster)
        {
            this._in_zone_raster = _in_zone_raster;
            this._in_weight_raster = _in_weight_raster;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "Spatial Analyst Tools";

        public override string ToolName => "Zonal Fill";

        public override string CallName => "sa.ZonalFill";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "compression", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_in_zone_raster, _in_weight_raster, _out_raster];

        /// <summary>
        /// <para>Input zone raster</para>
        /// <para>The input raster that defines the zones to be filled.</para>
        /// <para>用于定义要填充的区域的输入栅格。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input zone raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_zone_raster { get; set; }


        /// <summary>
        /// <para>Input weight raster</para>
        /// <para>Weight, or value, to be assigned to each zone.</para>
        /// <para>要分配给每个区域的权重或值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input weight raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_weight_raster { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para>The output raster for which the zones have been filled.</para>
        /// <para>已填充区域的输出栅格。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        public ZonalFill SetEnv(int? autoCommit = null, object cellSize = null, object compression = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, compression: compression, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}